<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<html>
<head>
<%@include file="/common/taglibs.jsp"%>
<title>查看图书</title>
<%@include file="/common/meta.jsp"%>
<link href="${ctx}/pages/new/themes/main.css" rel="stylesheet" type="text/css" />

<style type="text/css">
body {
	margin: 0px;
	padding: 0px;
}
.tb{
	border-bottom: 1px dashed #6CCD25;
}
</style>
</head>
<body>
<!-- 
<table width="900" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td>
     <iframe src="${ctx}/pages/view_top.jsp" frameborder="0" scrolling="no" width="900" height="62"></iframe>
    </td>
  </tr>
</table>
 -->
<%@include file="/pages/new/index_top.jsp" %>
<table width="900" align="center">
	<tr>
		<td align="center">
			<s:hidden id="bookId" name="model.id" />
			<fieldset style="margin: 10px;border: 1px solid #6CCD25;"><legend>图书信息</legend>
			<table id="mytable" height="304" align="center">
				<tr>
					<td width="561" height="298" valign="top">
					<table width="570" align="left" border="0" cellspacing="2">
						<tr>
							<td style="height: 6px;" colspan="4"></td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>图书名称：</b></td>
							<td align="left" colspan="3">
								${model.name}
							</td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>出版社：</b></td>
							<td align="left" colspan="3">
								${model.press.name}
							</td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>作 者：</b></td>
							<td width="152" align="left">
								${model.author}
							</td>
							<td align="right" width="93" height="22"><b>类 型：</b></td>
							<td width="214" align="left">
								<%= ((java.util.Map) request.getAttribute("bookTypeMap")).get(request.getAttribute("model.bkType")) %>
							</td>
						</tr>
						
						<tr>
							<td width="93" align="right" height="22"><b>学 科：</b></td>
							<td width="152" align="left">
								${model.subject.name}
							</td>
							<td align="right" width="93" height="22"><b>年 级：</b></td>
							<td width="214" align="left">
								<%= ((java.util.Map) request.getAttribute("gradeNameMap")).get(request.getAttribute("model.grade")) %>
							</td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>单 价：</b></td>
							<td width="152" align="left">
								${model.price}
							</td>
							<td align="right" width="93" height="22"><b>库 存：</b></td>
							<td width="214" align="left">
								${model.stock}
							</td>
						</tr>

						<tr>
							<td width="93" align="right" height="22"><b>页 数：</b></td>
							<td width="152" align="left">
								${model.pageCount}
							</td>
							<td align="right" width="93" height="22"><b>字 数：</b></td>
							<td width="214" align="left">
								${model.wordCount}
							</td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>版 次：</b></td>
							<td width="152" align="left">
								${model.version}
							</td>
							<td align="right" width="93" height="22"><b>开 本：</b></td>
							<td width="214" align="left">
								<s:if test="model.bookSize == '8'">8开</s:if>
								<s:elseif test="model.bookSize == 'B16'">大16开	</s:elseif>
								<s:elseif test="model.bookSize == '16'">16开</s:elseif>
								<s:elseif test="model.bookSize == '24'">24开</s:elseif>
								<s:elseif test="model.bookSize == 'B32'">大32开</s:elseif>
								<s:elseif test="model.bookSize == '32'">32开</s:elseif>
								<s:elseif test="model.bookSize == '64'">64开</s:elseif>
								<s:else>&nbsp;</s:else>
							</td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>ISBN：</b></td>
							<td width="152" align="left">
								${model.isbn}
							</td>
							<td align="right" width="93" height="22"><b>印刷次数：</b></td>
							<td width="214" align="left">
								${model.printCount}
							</td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>出版日期：</b></td>
							<td width="152" align="left">
								<s:date name="model.pubDate" format="yyyy年MM月dd日"/>
							</td>
							<td align="right" width="93" height="22"><b>印刷日期：</b></td>
							<td width="214" align="left">
								<s:date name="model.printDate" format="yyyy年MM月dd日"/>
							</td>
						</tr>
						<tr>
							<td width="93" align="right" height="22"><b>包装描述：</b></td>
							<td width="152" align="left">
								<s:if test="model.packDescn == 'PZ'">平装</s:if>
								<s:elseif test="model.packDescn == 'JZ'">精装</s:elseif>
								<s:elseif test="model.packDescn == 'XZ'">线装</s:elseif>
								<s:elseif test="model.packDescn == 'DZ'">袋装</s:elseif>
								<s:elseif test="model.packDescn == 'HZ'">盒装</s:elseif>
								<s:else>&nbsp;</s:else>
							</td>
							<td align="right" width="93" height="22"><b>纸张描述：</b></td>
							<td width="214" align="left">
								<s:if test="model.paperDesc == 'jb'">胶版纸</s:if>
								<s:elseif test="model.paperDesc == 'tb'">铜版纸</s:elseif>
								<s:else>&nbsp;</s:else>
							</td>
						</tr>
					</table>
				  </td>
					<td width="353" align="center" valign="top"
						style="border-left: 1px dotted #6CCD25;">&nbsp;
					<table width="76%" border="0" cellspacing="0">
						<tr>
							<td style="height: 3px;" align="center">图书封面</td>
						</tr>
						<tr>
							<td id="photoOperSpan1">&nbsp; <img alt="封面" align="middle"
								width="220" height="240" id="imgphoto"
								src="<c:if test='${not empty model.coverPhoto}'>${ctx}${model.coverPhoto}</c:if>
							 <c:if test='${empty model.coverPhoto}'> ${ctx}/images/longtian/book_nophoto_big.gif</c:if>" />
							</td>
						</tr>
					</table>
					</td>
				</tr>
			</table>
			<table width="850" align="center" style="border-top: 1px dotted #6CCD25;" border="0">
			 <tr>
				<td align="left" style="line-height: 24px;">
				 	${model.descn}
			    </td>
			</tr>
			</table>
			</fieldset></td>
	</tr>
</table>
 <%@include file="/pages/new/index_bottom.jsp" %>
</body>
</html>